package com.common.entity;

/*
  @author author
  @create 2020-11-18:0:23
  聊一聊实体类
*/

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "聊一聊数据表")
public class Consult implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "consult_id",type = IdType.AUTO)
    private Integer consultId;

    @ApiModelProperty(value = "聊一聊的图片")
    private String consultImg;

    @ApiModelProperty(value = "发帖内容")
    private String consultText;

    @ApiModelProperty(value = "用户的id")
    private String userId;

    @ApiModelProperty(value = "逻辑删除标志位")
    @TableLogic
    private Integer consultLogicflage;

    @ApiModelProperty(value = "乐观锁版本号")
    @Version
    private Integer consultVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date consultCreatedate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date consultUpdatedate;

}
